﻿using System;

namespace Icms.WebUI.Builder
{
    public interface IMapper<TEntity, TInput> where TEntity : class, new() where TInput : new()
    {
        TInput MapToInput(TEntity e);
        TEntity MapToEntity(TInput o, Guid? id = null);
        TInput RemapInput(TInput createInput, Guid? id = null);
    }
}